import javafx.beans.property.IntegerProperty;
import javafx.beans.property.SimpleIntegerProperty;

class Test {
	public static void main(String[] args) {
		IntegerProperty p1=new SimpleIntegerProperty(100);
		IntegerProperty p2=new SimpleIntegerProperty(200);
		System.out.println(p1.getValue() + ", " + p2.getValue());

		p2.setValue(300);
		System.out.println(p1.getValue() + ", " + p2.getValue());

		//p2.bind(p1.add(1000));
		p2.bindBidirectional(p1);
		System.out.println(p1.getValue() + ", " + p2.getValue());

		p1.setValue(123);
		System.out.println(p1.getValue() + ", " + p2.getValue());

		p2.setValue(54321);
		System.out.println(p1.getValue() + ", " + p2.getValue());
	}
}
